package ee.mtiidla.data;

import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;

/**
 * Created by Marko on 12.10.2014.
 */
@XmlAccessorType(XmlAccessType.FIELD)
public class Entry {

	@XmlAttribute(name = "agegroupid")
	private long ageGroupId;

	@XmlAttribute(name = "eventid")
	private long eventId;

	@XmlAttribute(name = "heatid")
	private long heatId;

	@XmlAttribute(name = "entrycourse")
	private String entryCourse;

	@XmlAttribute(name = "entrytime")
	private String entrytime;

	@XmlAttribute(name = "lane")
	private int lane;

	@XmlAttribute(name = "status")
	private String status;

	@XmlElement(name = "MEETINFO")
	private MeetInfo meetInfo;

	@XmlElementWrapper(name="RELAYPOSITIONS")
	@XmlElement(name="RELAYPOSITION")
	private List<RelayPosition> relayPositions;

	public long getAgeGroupId() {
		return ageGroupId;
	}

	public void setAgeGroupId(long ageGroupId) {
		this.ageGroupId = ageGroupId;
	}

	public long getEventId() {
		return eventId;
	}

	public void setEventId(long eventId) {
		this.eventId = eventId;
	}

	public long getHeatId() {
		return heatId;
	}

	public void setHeatId(long heatId) {
		this.heatId = heatId;
	}

	public String getEntryCourse() {
		return entryCourse;
	}

	public void setEntryCourse(String entryCourse) {
		this.entryCourse = entryCourse;
	}

	public String getEntrytime() {
		return entrytime;
	}

	public void setEntrytime(String entrytime) {
		this.entrytime = entrytime;
	}

	public int getLane() {
		return lane;
	}

	public void setLane(int lane) {
		this.lane = lane;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public MeetInfo getMeetInfo() {
		return meetInfo;
	}

	public void setMeetInfo(MeetInfo meetInfo) {
		this.meetInfo = meetInfo;
	}

	public List<RelayPosition> getRelayPositions() {
		return relayPositions;
	}

	public void setRelayPositions(List<RelayPosition> relayPositions) {
		this.relayPositions = relayPositions;
	}
}
